package org.codefinger.dao.util.jdbc;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class BigIntegerSetter implements StatementSetter {

	public static final BigIntegerSetter	INSTANCE	= new BigIntegerSetter();

	private BigIntegerSetter() {

	}

	@Override
	public void setParam(PreparedStatement statement, int index, Object param) throws SQLException {
		statement.setBigDecimal(index, new BigDecimal(((BigInteger) param)));
	}
}
